package com.blog.cloud.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户角色表(UserRole)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-02-26 19:12:23
 */
@Getter
@Setter
@TableName("t_user_role")
@Schema(name = "用户角色表实体", description = "用户角色表映射")
public class UserRole implements Serializable {
    @Serial
    private static final long serialVersionUID = 430393369706114463L;

    @TableId(value = "user_id" , type = IdType.AUTO)
    @Schema(description = "用户ID")
    private Long userId;

    @TableField(value = "role_id")
    @Schema(description = "角色ID")
    private Long roleId;
}

